import { createApp } from "vue";
import App from "./App.vue";
import "element-plus/dist/index.css";
import ElementPlus from "element-plus";
import "cgx-component/dist/style.css";
// import { vSlider, vWaves, vResize, vFlip } from "cgx-component";
import {
  vSlider,
  vWaves,
  vResize,
  vFlip,
  pageManager,
} from "cgx-component/index";

//如果需要别的字段
pageManager.setCurrentField("currentPage");
pageManager.setSizeField("testSize");
const app = createApp(App);

app.use(ElementPlus);
app.directive("slider", vSlider);
app.directive("waves", vWaves);
app.directive("resize", vResize);
app.directive("flip", vFlip);
app.mount("#app");
